package secondriver.ccs.parallel;

/**
 * Author : secondriver
 */
final class ComputeResult {

    private final int edge;
    private final int sid;
    private final byte[] operator;

    /**
     * 构造计算结果数据对象
     *
     * @param edge
     * @param sid
     * @param operator
     */
    public ComputeResult(int edge, int sid, byte[] operator) {
        this.edge = edge;
        this.sid = sid;
        this.operator = operator;
    }


    /**
     * 操作结果 array length = edge*edge
     */
    public byte[] getOperator() {
        return operator;
    }

    /**
     * 编号 0<=sid<pow(2,edge)
     */
    public int getSid() {
        return sid;
    }

    /**
     * 边长[1,31]
     */
    public int getEdge() {
        return edge;
    }
}
